package com.atguigu.gmall.service;

import com.atguigu.gmall.entity.PlatformPropertyKey;
import com.atguigu.gmall.entity.SkuPlatformPropertyValue;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface PlatformPropertyKeyService extends IService<PlatformPropertyKey> {

    /**
    * 根据分类id获取商品信息
     * 一级分类获取二级id,二级分类获取三级id,三级分类获取key
    *@returnType:
    *@param:
    */
    List<PlatformPropertyKey> getPlatformPropertyByCategoryId(Long category1Id, Long category2Id, Long category3Id);

    /**
    * 保存平台属性
    *@returnType:
    *@param:
    */
    void savePlatformProperty(PlatformPropertyKey platformPropertyKey);

    List<PlatformPropertyKey> getPlatformProperty(List<SkuPlatformPropertyValue> values);
}
